package com.wuyb.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

/**
 * 用户设置头像参数校验类
 *
 * @Author: wyb
 * @Date: 2024/01/03/14:18
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "User设置头像")
public class UserSetImgParam {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "图片",required = true)
    @NotNull(message = "图片不能为空")
    private MultipartFile file;
}
